package scala.Functional

object FunctionReturnFunction {
   def main(args: Array[String]): Unit = {
       val c = greeting("HUNG")
       val rs = c("VN")
       println(rs)
       
       
   }
   
   def greeting(name:String) = (lang:String) => {
      lang match{
         case "VN" => "Xin Chao "+name
         case _ => "Hello "+name
      }
   }
}